.class Les/ja$a;
.super Ljava/lang/Object;
.source "VideoProcessor.java"

# interfaces
.implements Les/m7$h;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/ja;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field a:Z

.field final synthetic b:Les/ja;


# direct methods
.method constructor <init>(Les/ja;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/ja$a;->b:Les/ja;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 p1, 0x0

    .line 2
    iput-boolean p1, p0, Les/ja$a;->a:Z

    return-void
.end method


# virtual methods
.method public a(Les/m7;Z)V
    .locals 0

    .line 1
    iget-object p1, p0, Les/ja$a;->b:Les/ja;

    invoke-static {p1}, Les/ja;->k(Les/ja;)Z

    return-void
.end method

.method public a(Les/m7;ZLandroid/media/MediaFormat;)V
    .locals 0

    return-void
.end method

.method public a(Les/m7;ZLcom/esfile/screen/recorder/media/util/l;)V
    .locals 6

    .line 3
    iget-object p2, p0, Les/ja$a;->b:Les/ja;

    monitor-enter p2

    .line 4
    :try_start_0
    iget-object v0, p0, Les/ja$a;->b:Les/ja;

    invoke-static {v0}, Les/ja;->l(Les/ja;)Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    .line 5
    invoke-virtual {p3, v1}, Lcom/esfile/screen/recorder/media/util/l;->a(Z)V

    .line 6
    monitor-exit p2

    return-void

    .line 7
    :cond_0
    invoke-virtual {p1}, Les/m7;->c()Z

    move-result v0

    if-nez v0, :cond_2

    iget-wide v2, p3, Lcom/esfile/screen/recorder/media/util/l;->c:J

    iget-object v0, p0, Les/ja$a;->b:Les/ja;

    .line 8
    invoke-static {v0}, Les/ja;->m(Les/ja;)Les/ja$d;

    move-result-object v0

    iget-wide v4, v0, Les/ja$d;->g:J

    cmp-long v0, v2, v4

    if-ltz v0, :cond_1

    iget-object v0, p0, Les/ja$a;->b:Les/ja;

    .line 9
    invoke-static {v0}, Les/ja;->c(Les/ja;)Les/u9;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-wide v2, p3, Lcom/esfile/screen/recorder/media/util/l;->c:J

    iget-object v0, p0, Les/ja$a;->b:Les/ja;

    invoke-static {v0}, Les/ja;->m(Les/ja;)Les/ja$d;

    move-result-object v0

    iget-wide v4, v0, Les/ja$d;->g:J

    cmp-long v0, v2, v4

    if-nez v0, :cond_2

    .line 10
    :cond_1
    invoke-virtual {p3, v1}, Lcom/esfile/screen/recorder/media/util/l;->a(Z)V

    .line 11
    monitor-exit p2

    return-void

    .line 12
    :cond_2
    iget-object v0, p0, Les/ja$a;->b:Les/ja;

    invoke-static {v0}, Les/ja;->c(Les/ja;)Les/u9;

    move-result-object v0

    const/4 v2, 0x1

    if-eqz v0, :cond_3

    iget-object v0, p3, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget v0, v0, Landroid/media/MediaCodec$BufferInfo;->flags:I

    and-int/2addr v0, v2

    if-nez v0, :cond_4

    :cond_3
    iget-object v0, p3, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget v0, v0, Landroid/media/MediaCodec$BufferInfo;->flags:I

    and-int/lit8 v0, v0, 0x4

    if-eqz v0, :cond_5

    .line 13
    :cond_4
    iput-boolean v2, p0, Les/ja$a;->a:Z

    .line 14
    invoke-virtual {p1}, Les/m7;->f()V

    .line 15
    :cond_5
    monitor-exit p2
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 16
    iget-object p1, p0, Les/ja$a;->b:Les/ja;

    invoke-static {p1}, Les/ja;->d(Les/ja;)Les/ja$e;

    move-result-object p1

    iget-boolean p2, p0, Les/ja$a;->a:Z

    invoke-virtual {p1, v2, p2, v1, p3}, Landroid/os/Handler;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;

    move-result-object p1

    invoke-virtual {p1}, Landroid/os/Message;->sendToTarget()V

    return-void

    :catchall_0
    move-exception p1

    .line 17
    :try_start_1
    monitor-exit p2
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw p1
.end method

.method public a(Les/m7;ZLjava/lang/Exception;)V
    .locals 0

    .line 2
    iget-object p1, p0, Les/ja$a;->b:Les/ja;

    invoke-static {p1, p3}, Les/ja;->b(Les/ja;Ljava/lang/Exception;)Z

    return-void
.end method

.method public b(Les/m7;Z)V
    .locals 0

    return-void
.end method

.method public b(Les/m7;ZLandroid/media/MediaFormat;)V
    .locals 0

    return-void
.end method

.method public c(Les/m7;Z)V
    .locals 2

    .line 1
    iget-boolean p2, p0, Les/ja$a;->a:Z

    if-eqz p2, :cond_0

    return-void

    :cond_0
    const-string p2, "vpsr"

    const-string v0, "2 found key frame!"

    .line 2
    invoke-static {p2, v0}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 3
    invoke-virtual {p1}, Les/m7;->f()V

    .line 4
    iget-object p1, p0, Les/ja$a;->b:Les/ja;

    invoke-static {p1}, Les/ja;->d(Les/ja;)Les/ja$e;

    move-result-object p1

    const/4 p2, 0x0

    const/4 v0, 0x0

    const/4 v1, 0x1

    invoke-virtual {p1, v1, v1, p2, v0}, Landroid/os/Handler;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;

    move-result-object p1

    invoke-virtual {p1}, Landroid/os/Message;->sendToTarget()V

    return-void
.end method
